%script to load release sheet and transform to decimal DOY

[fname,fpath]=uigetfile('*.*','select the release file to load')
relData=dlmread(strcat(fpath,fname),',');
[L,W]=size(relData);
relDoy=zeros(L,2);
for i=1:L
    relDoy(i,1)=relData(i,1);
    relDoy(i,2)=julianday(relData(i,2),relData(i,3),relData(i,4),relData(i,5),relData(i,6),relData(i,7));
end

badInd=find(relDoy(:,1)==0);
relDoy(badInd,:)=[];

[fname,fpath]=uiputfile('*.csv','select the file to write');
dlmwrite(strcat(fpath,fname),relDoy,'delimiter',',','precision',10)